//
//  CZStatusRetweetView.swift
//  Swift -- 微博
//
//  Created by sks on 16/6/29.
//  Copyright © 2016年 mohaha. All rights reserved.
//

import UIKit

class CZStatusRetweetView: UIView {
    
//    
//    var status : CZStatus? {
//    
////       contentLabel.text = status
//    }
    

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    func setupUI() {
        
        backgroundColor = RandomColor()
        
        addSubview(contentLabel)
        
        contentLabel.snp_makeConstraints { (make) in
          make.left.top.equalTo(self).offset(10)
          make.right.equalTo(self).offset(-10)
          
        }
        
        self.snp_makeConstraints { (make) in
            make.bottom.equalTo(contentLabel).offset(10)
        }
    }
    
    
    
    //转发微博
    private lazy var  contentLabel : UILabel  = {
        let lab = UILabel()
        
        lab.textColor = UIColor.blackColor()
        lab.font = UIFont.systemFontOfSize(15)
        lab.numberOfLines = 0
        return lab
    }()
    
}
